package com.work.keep.fragment;

import android.content.Context;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.work.keep.base.BaseFragment;
import com.work.keep.ui.PullToRefreshRecyclerView;

/**
 * Created by dllo on 16/1/22.
 */
public class MyFollowingFragment extends BaseFragment {

    private Context context;
    private PullToRefreshRecyclerView pullToRefreshRecyclerView;
    private RecyclerView recyclerView;

    @Override
    public void onAttach(Context context) {
        super.onAttach(context);
        this.context = context;
    }

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        pullToRefreshRecyclerView = new PullToRefreshRecyclerView(context);
        return  pullToRefreshRecyclerView;
    }

    @Override
    public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
        super.onViewCreated(view, savedInstanceState);
        recyclerView = (RecyclerView) pullToRefreshRecyclerView.getRefreshableView();
    }

    @Override
    protected void init() {

    }
}
